
const getters = {
  token: state => state.user.token,
	user: state=> {
		if(typeof(state.user.user) !== 'undefined' && typeof(state.user.user.alter_bind_phone)  !== 'undefined'){
			state.user.user.alter_bind_phone = state.user.user.alter_bind_phone && !localStorage.getItem('noalertbind_'+state.user.user.uid)
		}
		return state.user.user
	},
	privateChatMap:state=>state.room.privateChatMap,
	privateChatArray:state=>state.room.privateChatArray,
	roompara: state=>{
		if("login_alert_time" in state.room.roompara){
			state.room.roompara.login_alert_time = parseInt(state.room.roompara.login_alert_time,10)
		}
		state.room.roompara.replay_display = parseInt(state.room.roompara.replay_display,10)
		return state.room.roompara
	},
	xmessager:state=>state.room.xmessager,
	priTips:state=>state.room.priTips,
	allCount:state=>state.room.allCount,
	roomLive:state=>state.room.roomLive,
	roomChange:state=>state.room.roomChange,
	micLoading:state=>state.room.micLoading,
	micIndex:state=>state.room.micIndex,
	micLoadingTimer:state=>state.room.micLoadingTimer,
	speaker:state=>state.room.speaker,
	mictime:state=>state.room.mictime,
	currentHlsIndex:state=>state.room.currentHlsIndex,
	param:state=>state.room.wsparam,
	player:state=>state.room.player,
	ws:state=>state.room.ws,
	loginModeOp:state=>state.room.loginModeOp
}
export default getters
